package com.evry.uttrekk.uttrekk;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.evry.uttrekk.service.UttrekkManager;

/**
 * Hello world!
 *
 */
public class App {
	
    public static void main( String[] args )
    {
    	AnnotationConfigApplicationContext  appContext = new AnnotationConfigApplicationContext();
        appContext.getEnvironment().setActiveProfiles("production");
        appContext.scan("com.evry.uttrekk.config");
        appContext.refresh();
        UttrekkManager uttrekkManager = (UttrekkManager) appContext.getBean("uttrekkManager");
        uttrekkManager.generateStandardUttrekk();
    }
}
